import request from '@/utils/request'

export default {
  eqList(params) {
    return request({
      url: '/v1/specialList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/special/${id}`,
      method: 'get'
    })
  },
  create(data) {
    return request({
      url: '/v1/specialAdd',
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: '/v1/specialUpdate',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: `/v1/specialDel/${id}`,
      method: 'get'
    })
  },
  categoryTree() {
    return request({
      url: '/v1/specialCategoryTree',
      method: 'get'
    })
  },
  positionTree() {
    return request({
      url: '/v1/positionTree',
      method: 'get'
    })
  }
}
